cmake_minimum_required(VERSION 3.17)
project(jade)

set(CMAKE_AUTOMOC on)
set(CMAKE_AUTOUIC on)
set(CMAKE_AUTORCC on)

find_package(Qt5 REQUIRED COMPONENTS Core Gui Widgets Svg PrintSupport)



aux_source_directory(src sources)
aux_source_directory(src/Items sources1)
aux_source_directory(src/Diagrams sources2)
add_executable(${PROJECT_NAME}
        ${sources}
        ${sources1}
        ${sources2}
        jade.qrc
        jade.rc
        )

target_link_libraries(${PROJECT_NAME}
        Qt5::Core Qt5::Gui Qt5::Widgets Qt5::PrintSupport Qt5::Svg
        )